﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodsBidAP.aspx.cs" Inherits="Bidder_GoodsBidAP" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>按注册商品清单投标</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css" />
</head>

<script language="javascript">
function chk(chkid)
{
    if(window.document.getElementById('chk_'+chkid).checked==true)
    {
         window.document.getElementById('msg').innerText+='@'+chkid;   
         window.document.getElementById('txtmsg').innerText=window.document.getElementById('msg').innerText;    
   }
    else
    {
        window.document.getElementById('msg').innerText=window.document.getElementById('msg').innerText.replace('@'+chkid,'');   
        window.document.getElementById('txtmsg').innerText=window.document.getElementById('msg').innerText;    
    }
}
function pageload()
    {
        var s=window.document.getElementById('msg').innerText;
        if(s!=null)
        {

            arraylist=s.split('@');
            for(var i=1;i<arraylist.length;i++)
            {

                if(window.document.getElementById('chk_'+arraylist[i])!=null)
                {
                    window.document.getElementById('chk_'+arraylist[i]).checked=true;
                }
            }
        }
    }
</script>

<body>
    <form id="form1" runat="server">
        <table width="98%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 2px; height: 34px;">
                    <img src="../images/intro_left.gif" width="4" height="34" /></td>
                <td class="intro_wordbg" style="height: 34px">
                    按注册商品清单投标</td>
                <td background="../images/intro_bg.gif" style="height: 34px">
                    <img src="../images/intro_right.jpg" width="118" height="34" /></td>
            </tr>
        </table>
        <div>
            <table width="98%" border=1>
                <tr>
                    <td align="right">
                        生产企业：</td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCompanyName"  Width="284px"></asp:TextBox>
                    </td>
                    <td align="right">
                        生产企业注册号：</td>
                    <td>
                        <asp:TextBox ID="txtUserCode" runat="server" Width="284px" ></asp:TextBox></td>
                    
                </tr>
                <tr>
                    <td align="right">
                        流水号：</td>
                    <td >
                        <asp:TextBox ID="txtGoodsId" runat="server"  Width="284px"></asp:TextBox></td>
                    <td align="right">
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="Button5" runat="server"  Text="查 询" CssClass="button_bg"
                            Width="59px" /></td>
                </tr>
            </table>
            <table width="98%">
                <tr>
                    <td style="height: 21px">
                        <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                        &nbsp;&nbsp;&nbsp;</td>
                        <td colspan="1" style="width: 3px; height: 21px">
                       <input id="Submit1" name="submitbid" style="width: 60px" type="submit" value="投 标" class="button_bg" /> </td>
                </tr>
            </table>
            <asp:GridView ID="GridView1" runat="server" Width="98%" AutoGenerateColumns="False"
                OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated" BackColor="White"
                BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
                GridLines="Horizontal" Height="28px" CssClass='table_table' HeaderStyle-CssClass='table_title'
                OnDataBound="GridView1_DataBound">
                <Columns>
                    <asp:BoundField DataField="Goodsid" HeaderText="药品流水号" />
                    <asp:BoundField DataField="ProductCode" HeaderText="品目号" />
                    <asp:BoundField DataField="ProductName" HeaderText="通用名" />
                    <asp:BoundField DataField="GoodsName" HeaderText="商品名" />
                    <asp:BoundField DataField="Medicinemodel" HeaderText="剂型" />
                    <asp:BoundField DataField="Outlookc" HeaderText="规格" />
                    <asp:BoundField DataField="Factor" HeaderText="转换系数" />
                    <asp:BoundField DataField="LicenseNumber" HeaderText="批准文号" />
                    <asp:BoundField DataField="QualityLevels" HeaderText="质量层次" />
                    <asp:BoundField DataField="CompanyName" HeaderText="生产企业" />
                    <asp:BoundField DataField="UserCode" HeaderText="注册号" />
                    <asp:TemplateField HeaderText="选择投标"></asp:TemplateField>
                    <asp:BoundField DataField="num" HeaderText="是否投标" />
                </Columns>
                <RowStyle CssClass="table_td" />
                <AlternatingRowStyle CssClass="table_td2" />
                <HeaderStyle CssClass="table_title" />
            </asp:GridView>
            <asp:Label ID="Label1" runat="server" ForeColor="Blue"></asp:Label>
            <asp:Label runat="server" ID="msg" ForeColor="White" Width="5px"></asp:Label>
            <br />
            <input type="hidden" id="txtmsg" name="txtmsg" runat="server" />
            <br />
            <input type="hidden" id="txtdatabase" name="txtdatabase" runat="server" />
        </div>
    </form>
</body>
</html>
